package com.tupu.entity.dispatch;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 信号频率
 * @TableName tb_signalfrequency_data
 */
@TableName(value ="tb_signalfrequency_data")
@Data
public class SignalfrequencyData implements Serializable {
    /**
     * 
     */
    @TableId(value = "signal_id")
    private String signalId;

    /**
     * 厂站
     */
    @TableField(value = "station")
    private String station;

    @TableField(value = "device_desc")
    private String deviceDesc;

    private String deviceName;

    private String deviceId;

    private String deviceType;

    @TableField(exist = false)
    private String action;

    /**
     * 信号类别:越限类/设备类
     */
    @TableField(value = "signal_type")
    private String signalType;

    @TableField(value = "signal_name")
    private String signalName;

    @TableField(value = "signal_speed")
    private Integer signalSpeed;

    /**
     * 动作频次：低频/中频/高频
     */
    @TableField(value = "action_type")
    private String actionType;

    /**
     * 动作频次类型：小时/天
     */
    @TableField(value = "action_time_type")
    private String actionTimeType;
    /**
     * 定级
     */
    @TableField(value = "grading")
    private String grading;

    /**
     * 重要程度：一般/重要/严重
     */
    @TableField(value = "important_type")
    private String importantType;

    @TableField(exist = false)
    private String timeHour;

    @TableField(exist = false)
    private String timeDay;

    /**
     * 时间
     */
    @TableField(value = "time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime time;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 数据源类型 告警/事件
     */
    @TableField(value = "data_source_type")
    private String dataSourceType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}